﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLDC.Common.Estate;

namespace ZLDC.Estate.TM
{
    public partial class EstateCheck : _PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                btnCompetences();   // 权限控制按钮                
            }
        }

        // 权限控制按钮
        private void btnCompetences()
        {
            if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("审核楼盘字典"))
                btnCheck.Visible = false;
            if (!ZLDC.Common.BaseUser.UserInfo.GetPopedom("删除楼盘字典"))
                btnDelete.Visible = false;
        }
    }
}
